<?php
class Demo extends BaseController
{	
	public function indexAction()
	{
		die("Demo->index");
	}
	
	public function demoAction()
	{
		
		print_r($this->getUrlParams());
		
		die("Demo->demo");
	}
	
	
	public function dbAction()
	{
		$conn = new PDO("mysql:host=192.168.100.127:3306", "root", "000000");
		$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
		//$conn->prepare("SELECT UNIX_TIMESTAMP()");
		
		print_r($conn->query("SELECT UNIX_TIMESTAMP()")->fetchAll());
		
		
	}
}
?>